﻿using Common;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TestConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            var log = QueueWriteLog.Instance();
            log.Register();

            Console.WriteLine("请输入日志内容，输入1时退出写日志");
            while (true)
            {
                string msg = Console.ReadLine();
                if (msg == "1")
                {
                    break;
                }

                QueueWriteLog.Info(msg);
            }
            Console.WriteLine("写日志退出成功");
        }
    }
}
